var gulp       = require('gulp');
var jshint 	   = require('gulp-jshint');
var config     = require('../config').jshint;
var plumber = require('gulp-plumber');
var handleErrors = require('../util/handleErrors2');

gulp.task('jshint', function() {
  return gulp.src(config.src)
	.pipe(plumber({errorHandler: handleErrors}))
    .pipe(jshint())
    .pipe(jshint.reporter('default'));
});
